package com.qiyeji.real_estate.service;

import com.qiyeji.real_estate.entity.BitCard;
import com.qiyeji.real_estate.entity.BitCardKey;
import com.qiyeji.real_estate.mapper.BitCardMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class BitCardService {
    @Autowired
    BitCardMapper bitCardMapper;

    public List<BitCard> getAllBitCard() { return bitCardMapper.getAllBitCard(); }

    public Integer insert(BitCard bitCard) { return bitCardMapper.insert(bitCard); }

    public List<BitCard> getBitCardBySartTime(String startTime) { return bitCardMapper.getBitCardByStartTime(startTime); }

    public Integer update(BitCard bitCard) { return bitCardMapper.updateForSignOut(bitCard); }

    public BitCard select(String startTime, String sCode) { return bitCardMapper.selectBySCodeandStartTime(startTime, sCode); }

    public List<BitCard> getAllDataBySCode(String sCode) { return bitCardMapper.getAllDataBySCode(sCode); }
}
